TARGETS:=main test
all:$(TARGETS)

main:main.cc
	g++ -o $@ $^ -std=c++17 -lpthread

test:test.cc
	g++ -o $@ $^ -std=c++17 -lpthread

.PHONY:clean
clean:
	rm $(TARGETS) -fv